<%--
  Created by IntelliJ IDEA.
  User: mengshun
  Date: 2022/3/17
  Time: 15:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" errorPage="error.jsp" %>
<html>
<head>
    <title>查看作用域</title>
</head>
<body>


    <%
//        int a = 1/0;
        // page  this 当前页对象
//        Class<?> aClass = page.getClass();
//        System.out.println("aClass = " + aClass);

        String username = config.getInitParameter("username");
        System.out.println("username = " + username);
    %>
    <h2><%=pageContext.getAttribute("pageContext")%></h2>
    <h2><%=request.getAttribute("request")%></h2>
    <h2><%=session.getAttribute("session")%></h2>
    <h2><%=application.getAttribute("application")%></h2>

</body>
</html>
